package com.lindroy.androidplayer.logic.model

/**
 * @author Lin
 * @date 2021/4/9
 * @function 登录模型
 */
data class LoginResp(
    val admin: Boolean = false,
    val chapterTops: List<Any> = listOf(),
    val collectIds: List<Int> = listOf(),
    var coinCount:Int=0,
    val email: String = "",
    val icon: String = "",
    val id: Int = 0,
    val nickname: String = "",
    val password: String = "",
    val publicName: String = "",
    val token: String = "",
    val type: Int = 0,
    val username: String = ""
) {
    val isLogin: Boolean
        get() = username.isNotEmpty()
}